package com.tjy.service.impl;

import com.tjy.bean.FourMonthMaxPrice;
import com.tjy.bean.MobilePhone;
import com.tjy.dao.IMonthTopPriceDao;
import com.tjy.service.IMonthTopPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IMonthTopPriceServiceImpl implements IMonthTopPriceService {
    @Autowired
    private IMonthTopPriceDao monthTopPriceDao;
    @Override
    public Integer selectMonthTopPrice(Integer id) {
        return monthTopPriceDao.selectMonthTopPrice(id);
    }

    @Override
    public MobilePhone selectMobilePhone(Integer id) {
        return monthTopPriceDao.selectMobilePhone(id);
    }

    @Override
    public List<FourMonthMaxPrice> selectFourMonth(Integer id) {
        return monthTopPriceDao.selectFourMonth(id);
    }
}
